<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/inc/taglib.inc"%>
<%@ include file="/WEB-INF/inc/script.inc"%>
<!DOCTYPE html>
<html>

<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="${base}">
<title>中金通发行方后台 | 订单列表</title>

<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="font-awesome/css/font-awesome.css" rel="stylesheet">

<!-- FooTable -->
<!-- <link href="css/plugins/footable/footable.core.css" rel="stylesheet"> -->
<!-- Data Tables -->
<link href="css/plugins/dataTables/dataTables.bootstrap.css"
	rel="stylesheet">
<link href="css/plugins/dataTables/dataTables.responsive.css"
	rel="stylesheet">
<link href="css/plugins/dataTables/dataTables.tableTools.min.css"
	rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!-- Sweet Alert -->
<link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
<link href="css/plugins/datapicker/datepicker3.css" rel="stylesheet">
<link href="js/plugins/jquery-ui/jquery-ui.min.css" rel="stylesheet">
<link href="css/plugins/blueimp/css/blueimp-gallery.min1.css" rel="stylesheet">
<style type="text/css">
	.form-control[readonly]{
		background-color: #fff;
		opacity: 1;
	}
	textarea {
    border: #ffffff;
    resize: none;
    background-color: #fff;
	}
	.form-control[disabled]{
		background-color: #F8FAFB;
		border: #F8FAFB;
	}
	.blueimp-gallery {
        overflow: hidden;
		z-index: 999999;
		background: #000;
		background: rgba(0, 0, 0, 0.9);
		display: none;
		direction: ltr;
		-ms-touch-action: none;
		touch-action: none;
    }
    .blueimp-gallery>.slides {
		position: relative;
		height: 100%;
		overflow-x: hidden
	}
	.blueimp-gallery>.slides>.slide {
		position: relative;
		float: left;
		margin-top:15px;
		height: 90%;
		text-align: center;
		-webkit-transition-timing-function: cubic-bezier(0.645,.045,.355,1);
		-moz-transition-timing-function: cubic-bezier(0.645,.045,.355,1);
		-ms-transition-timing-function: cubic-bezier(0.645,.045,.355,1);
		-o-transition-timing-function: cubic-bezier(0.645,.045,.355,1);
		transition-timing-function: cubic-bezier(0.645,.045,.355,1)
	}
</style>
</head>

<body>

	<div id="wrapper">
		<div id="blueimp-gallery" class="blueimp-gallery">
             <div class="slides"></div>
             <h3 class="title"></h3>
			 <a class="prev">‹</a>
             <a class="next">›</a>
             <a class="close">×</a>
        </div>
		<!-- 左侧菜单 -->
		<jsp:include page="/WEB-INF/jsp/publisher/main-menu.jsp"></jsp:include>
		<div id="page-wrapper" class="gray-bg">
			<div class="row border-bottom">
				<!-- 头部工具栏区 -->
				<jsp:include page="/WEB-INF/jsp/common/main-header.jsp"></jsp:include>
			</div>
			<div class="row wrapper border-bottom white-bg page-heading">
				<div class="col-lg-10">
					<h2>销售管理</h2>
					<ol class="breadcrumb">
						<li><a href="publisher/platform">Home</a></li>
						<li><a href="publisher/product/list">产品管理</a></li>
						<li class="active"><strong>订单列表</strong></li>
					</ol>
				</div>
				<div class="col-lg-2"></div>
			</div>
			<div class="row" style="margin-top: 10px;">
				<input type="hidden" id="needRevisit" value="${needRevisit}"/>
				<div class="col-md-12">
					<div class="tabs-container">
					<ul class="nav nav-tabs">
                            <li class="active">
								<a href="orders/list">
									 订单列表
								</a>
							</li>
                        </ul>
						<div class="tab-content">
							<div class="tab-pane active">
								<div class="panel-body">
									<div
										class="wrapper wrapper-content animated fadeInRight ecommerce">
											<div class="ibox-content m-b-sm">
												<form id="queryForm" method="post">
													<input type="hidden" name="productId" value="${productId}" />
													<div class="row">
														<div class="col-sm-4">
															<div class="form-group">
																<label class="control-label" for="investorName">客户姓名</label> <input
																	type="text" id="investorName" name="investorName" value=""
																	placeholder="投资人姓名" class="ui-autocomplete-input form-control" autocomplete="off">
															</div>
														</div>
														<div class="col-sm-4">
															<div class="form-group">
																<label class="control-label" for="revisitState">回访状态</label> 
																<select id="type" name="revisitState" 
																		class="form-control m-b" tabindex="2">
																		<option value="" selected="selected">所有</option>
																		<option value="1">未回访</option>
																		<option value="2">回访未确认</option>
																		<option value="3">已完成</option>
																	</select>
															</div>
														</div>
														<div class="col-sm-4">
															<div class="form-group">
																<label class="control-label" for="state">订单状态</label> 
																<select id="type" name="state" 
																		class="form-control m-b" tabindex="2">
																		<option value="" selected="selected">所有</option>
																		<option value="2">未支付</option>
																		<option value="4">部分支付</option>
																		<option value="1">已支付</option>
																		<option value="6">已完成</option>
																		<option value="7">即将到期</option>
																		<option value="8">待兑付</option>
																		<option value="3">已兑付</option>
																		<option value="5">已取消</option>
																	</select>
															</div>
														</div>
													</div>
													<div class="row">
														<div class="col-sm-4 col-sm-offset-2">
					                                        <button class="btn btn-outline btn-default pull-right m-t-n-xs" id="cancleQuery" type="reset">重置</button>
					                                        <div class="pull-right">&nbsp;&nbsp;&nbsp;</div>
					                                        <button class="btn btn-primary pull-right m-t-n-xs" id="queryBtn" type="button">查询</button>
					                                    </div>
													</div>
												</form>
											</div>
										<div class="row">
											<div class="col-lg-12">
												<div class="ibox float-e-margins">
													<div class="ibox-content">
														<table id="ordersEditable"
															class="table table-striped table-bordered table-hover">
															<thead>
																<tr>
																	<th>客户</th>
																	<th>联系方式</th>
																	<th>认购金额</th>
																	<th>认购时间</th>
																	<th>订单状态</th>
																	<th>合格投资人尽职调查</th>
																	<th>风险揭示书</th>
																	<th>合同</th>
																	<th>回访状态</th>
																	<th>是否已盖章</th>
																	<th style="background-color: white;">操作</th>
																</tr>
															</thead>
															<tbody>
															</tbody>

														</table>

													</div>
												</div>
											</div>
										</div>

									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			 <button class="btn btn-primary"  type="button" id="upload_electronicSeal" data-toggle="modal" data-target="#dealEmpModal" style="display:none;"></button>
			   <div class="modal mymodal inmodal" id="dealEmpModal" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content animated fadeIn">
                        <div class="modal-header">
                        	<button type="button" class="close" data-dismiss="modal" id="deal_emp_miss"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                            </button>
                            <h4 class="modal-title">电子公章</h4>
                    </div>
                     <div class="modal-body">
                    	<div class="form-group"><label>电子公章</label>
                    		<input type="text" style="display:none;" id="electronicSeal_order_id"  name="id" value="" > 
                    		<input id="electronicSeal" class="btn btn-outline btn-primary" type="file" name="electronicSeal" accept="image/*" >
                    	</div>
                    </div>
                    <div class="modal-footer">
						<button type="button" onclick="uploadElectronicSeal();" class="btn btn-primary">确定</button>
                        <button type="button" class="btn btn-white" id="dsimiss_deal_emp" data-dismiss="modal">取消</button>
                    </div>
                </div>
        </div></div>
        
        <div class="modal inmodal fade" id="revisitModel" tabindex="-1" role="dialog"  aria-hidden="true">
                                <div class="modal-dialog modal-lg">
                                    <div class="modal-content">
                                        <div class="modal-header">
                                            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                                            <h4 class="modal-title">回访反馈</h4>
                                        </div>
                                        <div class="modal-body">
                                        <div id="revisitBody"></div>
										<script id="revisitTemplate" type="text/x-jquery-tmpl">
							                <div class="row">
                                                <div class="col-sm-12">
										            <div class="form-group">
                                                         <label class="control-label" for="brief_name">回访内容</label>
							                            <textarea name="remark" rowspan="3" class="form-control" disabled="disabled">{{= visitContent}}</textarea>
                        				             </div>
								                </div>
							                </div>
											<div class="row">
							                    <div class="col-sm-12">
							                        <div class="form-group">
							                            <label class="control-label" for="brief_name">反馈内容</label>
							                            <textarea name="remark" rowspan="3" class="form-control" disabled="disabled">{{= feedBack}}</textarea>
							                        </div>
							                    </div>
											</div>
											<div class="row">
							                   <div class="col-sm-12">
													<label class="control-label" for="brief_name">客户签名</label>
													<div class="lightBoxGallery">
                                                         <a href="{{= investorSign}}" title="客户签名" data-gallery=""><img style="width:100px;height:100px;" src="{{= investorSign}}"></a> &nbsp;&nbsp;&nbsp;
                        				             </div>
								                </div>
										            
											</div>
							                <div class="row">
							                	<div class="form-group">
							                         <div class="col-sm-4 col-sm-offset-5">
							                             <button class="btn btn-primary" data-dismiss="modal" id="auditBtn" type="button">确 定</button>
							                             <button class="btn btn-white" data-dismiss="modal" type="button">取 消</button>
							                         </div>
							                    </div>
							                </div>
										</script>
                                        </div>
                                    </div>
                                </div>
                            </div>
			<!-- 底部版权 -->
			<jsp:include page="/WEB-INF/jsp/common/main-footer.jsp"></jsp:include>
		</div>
	</div>



	<!-- Mainly scripts -->
	<script src="js/jquery-2.1.1.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
	<script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
	<script src="js/plugins/jeditable/jquery.jeditable.js"></script>
	<script src="js/jquery.serialize-object.min.js" type="text/javascript"></script>
	<script src="js/plugins/jquery-ui/jquery-ui.min.js"></script>

	<!-- Data Tables -->
	<script src="js/plugins/dataTables/jquery.dataTables.js"></script>
	<script src="js/plugins/dataTables/dataTables.bootstrap.js"></script>
	<script src="js/plugins/dataTables/dataTables.responsive.js"></script>
	<script src="js/plugins/dataTables/dataTables.tableTools.min.js"></script>

	<!-- Custom and plugin javascript -->
	<script src="js/inspinia.js"></script>
	<script src="js/plugins/pace/pace.min.js"></script>
	<script src="js/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>

	<!-- Sweet alert -->
    <script src="js/plugins/sweetalert/sweetalert.min.js"></script>
    
    <!-- blueimp gallery -->
    <script src="js/plugins/blueimp/jquery.blueimp-gallery.min1.js"></script>

	<!-- Page-Level Scripts -->
	<script src="js/jquery.tmpl.min.js"></script>
	<script src="js/publisher/orders-module.js?v=${jsVersion}"></script>
	<script src="js/investor/utils.js?v=${jsVersion}"></script>
	<script src="js/ajaxfileupload.js"></script>
	<script>
		$(document).ready(function() {
			OrdersModule.init();
		});
	</script>

</body>

</html>
